<?php
	require_once("../../db/dbclass.php");
	require_once("../../model/userinfo.php");
	require_once("../../utils/common.php");
	$myDb=&DbController::getInstance();
	$tweets_id=$_POST['tweets_id'];
	$param="select * from yj_tweets where tweets_id=$tweets_id";
	$result=$myDb->exec_query($param);
	if($result==TRUE){
		while($row = mysqli_fetch_array($result,MYSQL_ASSOC)){
			$arrayName = array('tweets_id' =>$row['tweets_id'] ,
				'user_id'=>$row['user_id'],
				'tweets_content'=>$row['tweets_content']
			);
			$arr = array('result' =>$arrayName );
			echo json_encode($arr);
			return;
		};
	}
	$arr = array('result' =>' ');
	echo json_encode($arr);
?>